package kuonjisai.swing;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JOptionPane;

public class SwingMenuActionListener implements ActionListener {

	@Override
	public void actionPerformed(ActionEvent e) {
		
		switch ( e.getActionCommand() ){
		case "new" : 
			JOptionPane.showMessageDialog(null, "새 파일 을 생성해 주세요", "new 메뉴", JOptionPane.QUESTION_MESSAGE ); break;
		case "close" :
			JOptionPane.showMessageDialog(null, "close 버튼 클릭함"); break;
		case "setting" :
			JOptionPane.showMessageDialog(null, "설정 버튼을 클릭하셨습니다.", "설정 메뉴", JOptionPane.WARNING_MESSAGE ); break;	
		case "about" : new SwingAboutDialog();   break;		
		case "exit" :
			System.exit(0);	break;
			
		
		
		
		}
		
		
		
	}

	
	
}
